<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %>
<%
    String path = request.getContextPath();
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>李宁体育</title>
     <link rel="shortcut icon" href="favicon.ico">
    <link href="<%=path%>/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="<%=path%>/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="<%=path%>/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="<%=path%>/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="<%=path%>/css/plugins/chosen/chosen.css" rel="stylesheet">

    <link href="<%=path%>/css/plugins/ionRangeSlider/ion.rangeSlider.css" rel="stylesheet">
    <link href="<%=path%>/css/plugins/ionRangeSlider/ion.rangeSlider.skinFlat.css" rel="stylesheet">
    <link href="<%=path%>/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css"
          rel="stylesheet">
    <link href="<%=path%>/css/animate.min.css" rel="stylesheet">
    <link href="<%=path%>/css/style.min862f.css?v=4.1.0" rel="stylesheet">
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>修改订单</h5>                
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal m-t" action="saveCustItemRecord.do" method="post" id="saveCustItemRecordForm">
                        <div class="form-group">
                                    <input type="hidden" name="id" id="id" value="${custItemRecord.id}"/>  
									<label class="col-sm-2 control-label">物流单号</label><font color="red">*</font>
									<div class="col-sm-3">
											<input type="text" class="form-control" name="shippingNo" id="shippingNo" value="${custItemRecord.shippingNo}" placeholder="物流单号"></input>
									</div>
									</div>	
									<div class="form-group">
										<label class="col-sm-2 control-label">快递公司编码</label><font color="red">*</font>
										<div class="col-sm-3">
										   <select class="chosen-select form-control" name="shipperCode" id="shipperCode">
										        <option value="shunfeng" <c:if test="${custItemRecord.shipperCode eq 'shunfeng'}">selected="selected"</c:if>>顺丰快递</option>											
												<option value="ems" <c:if test="${custItemRecord.shipperCode eq 'ems'}">selected="selected"</c:if>>EMS快递</option>
												<option value="shengtong" <c:if test="${custItemRecord.shipperCode eq 'shengtong'}">selected="selected"</c:if>>申通快递</option>
												<option value="yuantong" <c:if test="${custItemRecord.shipperCode eq 'yuantong'}">selected="selected"</c:if>>圆通快递</option>
												<option value="zhongtong" <c:if test="${custItemRecord.shipperCode eq 'zhongtong'}">selected="selected"</c:if>>中通快递</option>												
												<option value="yunda" <c:if test="${custItemRecord.shipperCode eq 'yunda'}">selected="selected"</c:if>>韵达快递</option>
												<option value="baishihuitong" <c:if test="${custItemRecord.shipperCode eq 'baishihuitong'}">selected="selected"</c:if>>百世汇通快递</option>												
												<option value="zaijisong" <c:if test="${custItemRecord.shipperCode eq 'zaijisong'}">selected="selected"</c:if>>宅急送快递</option>											
												<option value="tiantian" <c:if test="${custItemRecord.shipperCode eq 'tiantian'}">selected="selected"</c:if>>天天快递</option>
												<option value="debangwuliu" <c:if test="${custItemRecord.shipperCode eq 'debangwuliu'}">selected="selected"</c:if>>德邦物流快递</option>
												<option value="xinbangwuliu" <c:if test="${custItemRecord.shipperCode eq 'xinbangwuliu'}">selected="selected"</c:if>>新邦物流快递</option>
												<option value="quanfeng" <c:if test="${custItemRecord.shipperCode eq 'quanfeng'}">selected="selected"</c:if>>全峰快递</option>
												<option value="shenghui" <c:if test="${custItemRecord.shipperCode eq 'shenghui'}">selected="selected"</c:if>>盛辉快递</option>										
												<option value="zhongtie" <c:if test="${custItemRecord.shipperCode eq 'zhongtie'}">selected="selected"</c:if>>中铁快递</option>
											</select>
										</div>
									</div>	
									<div class="form-group">
										<label class="col-sm-2 control-label">订单状态</label><font color="red">*</font>
										<div class="col-sm-3">
										   <select class="chosen-select form-control" name="orderStatus" id="orderStatus">
										        <option value="3" <c:if test="${custItemRecord.orderStatus eq '0'}">selected="selected"</c:if>>待审核</option>
										        <option value="3" <c:if test="${custItemRecord.orderStatus eq '1'}">selected="selected"</c:if>>已审核确认</option>
										        <option value="3" <c:if test="${custItemRecord.orderStatus eq '2'}">selected="selected"</c:if>>审核未通过</option>
										        <option value="3" <c:if test="${custItemRecord.orderStatus eq '3'}">selected="selected"</c:if>>客户已确认(待发货)</option>											
												<option value="4" <c:if test="${custItemRecord.orderStatus eq '4'}">selected="selected"</c:if>>已发货</option>
												<option value="5" <c:if test="${custItemRecord.orderStatus eq '5'}">selected="selected"</c:if>>已完成</option>											
											</select>
										</div>
									</div>							
									<div class="form-group">
                                         <div class="col-sm-4 col-sm-offset-3">
                                          <button class="btn btn-primary" type="submit" >保 存</button>
                                          &nbsp;<button class="btn btn-info" type="button" onclick="goback()">返回</button>
                                         </div>
                                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="<%=path%>/js/jquery.min.js?v=2.1.4"></script>
<script src="<%=path%>/js/bootstrapValidator.min.js"></script>
<!--下拉框-->
<script src="<%=path%>/js/plugins/chosen/chosen.jquery.js"></script>

<script >
    function goback() {
	       window.location.href="<%=path%>/custItemRecord/queryCustItemRecordList";
    }
    //表单验证
    var config = {
            ".chosen-select": {},
            ".chosen-select-deselect": {allow_single_deselect: !0},
            ".chosen-select-no-single": {disable_search_threshold: 10},
            ".chosen-select-no-results": {no_results_text: "Oops, nothing found!"},
            ".chosen-select-width": {width: "95%"}
    };
    
    for (var selector in config)$(selector).chosen(config[selector]);
    $(document).ready(function () {
        $('#saveCustItemRecordForm').bootstrapValidator({
            message: 'This value is not valid',
            fields: {
            	shippingNo: {
                    message: '物流单号不能为空！',
                    validators: {
                        notEmpty: {
                            message: '物流单号不能为空！'
                        }
                    }
                },          
            },
            submitHandler: function(validator, form, submitButton) {
            }
        });
    });
</script>
</body>
</html>
